package com.season.seasonStudy.javase.j_007_string;

public class StringBufferTest {
	public void getMoney(StringBuffer money,String sign)
	{
		for (int i = money.length()-3; i > 0; i-=3) {
			money.insert(i, ",");
		}
		money.insert(0, sign);
	}
	public static void main(String[] args) {
		StringBufferTest tf=new StringBufferTest();
		StringBuffer sbf1=new StringBuffer("1000000000");
	
		tf.getMoney(sbf1,"￥");
		
		System.out.println(sbf1.toString());
	}
	
	
	
	
}
